home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 2.8 KB | 62 lines | [TEXT/GEOL] |
- Item 1279586 6-Sept-90 14:36PDT
-
- From: V0683 Amoco Tech, Eric Berdahl,VAR
-
- To: MACAPP.TECH$ MacApp Technical
- D6187 ObjectSoft, Barry Wilson,PRT
-
- Sub: Re-O Pascal++/C++
-
- Have you ever said to yourself, “I know that there’s a bear trap right there
- just waiting to munch off my foot, but I can’t resist stepping there anyway?”
- With that introduction:
-
- By the way, I like Eiffel too.
-
- •"This leads me to believe that most of the C++ fans are really just C fans,
- extremely new to OOP, or new to C++. Most of these people have already decided
- that C++ is better than Object Pascal even though most have no experience with
- the later at all."
- <flame on> Give me a break! This has to be one of the more self-serving
- statements I've heard in years. I happen to like C++. I happen to like C. I
- happen to like Pascal, Object Pascal, and Eiffel. However, C++ _DOES_ have
- some nice features, and they tend to make my job (programming and software
- design) much easier. That's why I use it. And more to the point, I use both
- OP and C++, each is good at different things. Remember the old saying, "the
- right tool for the right job." <flame off>
-
- •<your MI comments> - Right on!
-
- •One last C++ comment: C++ will never die the, what did you call it, "real
- death it deserves." It is here to stay, but you don't have to use it, just
- live with it.
-
- •8) Operator Overloading
- I think Derek White's comments are good. So far, you haven't discussed
- _operator_ overloading, just method overloading, although I personally like
- both concepts. However, operator overloading is a godsend for writing language
- extensions, which I have done and enjoy using. This is one of those BIG
- features of C++ which does attract me.
-
- •9) Genericity
- I like the concept you describe; kinda like having a virtual base class, no?
- But I think the bigger idea of genericity involves parameterized types. And
- you're right, OP needs it (so do other OO languages :-)).
-
- •General comments
- Personally, I think the Object Pascal/C++ war is pretty artificial. _If_
- OPascal had 1) private data members and member functions, 2) operator
- overloading, 3) better USES use (having USES in IMPLEMENTATION sections would
- suffice), and 4) genericity, I would probably dump C++ in favor of Object
- Pascal. The reason for this is not the fault of C++ or the grace of Pascal,
- but simply that my favorite class library, MacApp, is currently supported
- better by Pascal than C++. However, this tide is turning, and I am riding the
- wave. The CPlusMacApp unit posted a few months ago is a godsend. It really
- makes some of the more Pascal-ly things easy from C++ (and better, IMHO).
-
- Stirring the soup,
- Eric Berdahl
- Amoco Technology Company
- AppleLink: V0683
-
-